<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <link rel="shortcut icon" href="#" type="image/png">

    <title>订单详情页面</title>

    <link href="/static/css/page.css" rel="stylesheet">

    <link href="/static/css/style.css" rel="stylesheet">
    <link href="/static/css/style-responsive.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="/static/js/html5shiv.js"></script>
    <script src="/static/js/respond.min.js"></script>
    <![endif]-->
</head>

<body class="sticky-header">

<section>
    <!-- left side start-->
    <div class="left-side sticky-left-side">

        <!--logo and iconic logo start-->
        <div class="logo">
            <a href="index.html"><img src="/static/images/logo.png" alt=""></a>
        </div>

        <div class="logo-icon text-center">
            <a href="index.html"><img src="/static/images/logo_icon.png" alt=""></a>
        </div>
        <!--logo and iconic logo end-->


        <div class="left-side-inner">

            <!-- visible to small devices only -->
            <div class="visible-xs hidden-sm hidden-md hidden-lg">
                <div class="media logged-user">
                    <img alt="" src="/static/images/photos/user-avatar.png" class="media-object">
                    <div class="media-body">
                        <h4><a href="#">John Doe</a></h4>
                        <span>"Hello There..."</span>
                    </div>
                </div>

                <h5 class="left-nav-title">Account Information</h5>
                <ul class="nav nav-pills nav-stacked custom-nav">
                    <li><a href="#"><i class="fa fa-user"></i> <span>Profile</span></a></li>
                    <li><a href="#"><i class="fa fa-cog"></i> <span>Settings</span></a></li>
                    <li><a href="#"><i class="fa fa-sign-out"></i> <span>Sign Out</span></a></li>
                </ul>
            </div>

            <!--sidebar nav start-->
            <ul class="nav nav-pills nav-stacked custom-nav">
                <li class="menu-list"><a href="/commerce/api/v2/index"><i class="fa fa-home"></i> <span>首页</span></a>
                    <ul class="sub-menu-list">
                        <li class="active"><a href="/commerce/api/v2/index">指示板</a></li>
                    </ul>
                </li>
                <li><a href="/commerce/api/v2/banner/list"><i class="fa fa-gift"></i> <span>banner</span></a></li>
                <li class="menu-list"><a href=""><i class="fa fa-th-list"></i> <span>分类&品牌</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="/commerce/api/v2/category/list">分类</a></li>
                        <li><a href="/commerce/api/v2/brand/list">品牌</a></li>
                    </ul>
                </li>
                <li class="menu-list"><a href=""><i class="fa fa-apple"></i> <span>商品</span></a>
                    <ul class="sub-menu-list">
                        <li class="active"><a href="/commerce/api/v2/goods/list">商品</a></li>
                        <li><a href="/commerce/api/v2/sku/list">商品sku</a></li>
                        <li><a href="/commerce/api/v2/inventory/list">商品sku库存销量</a></li>
                        <li><a href="/commerce/api/v2/goodsAttr/list">商品属性</a></li>
                    </ul>
                </li>
                <li class="active"><a href="/commerce/api/v2/order/list"><i class="fa fa-btc"></i> <span>订单</span></a></li>
                <li class="menu-list"><a href=""><i class="fa fa-user"></i> <span>用户</span></a>
                    <ul class="sub-menu-list">
                        <li class="active"><a href="/commerce/api/v2/user/list">商城客户</a></li>
                        <li><a href="/commerce/api/v2/comment/list">用户评价</a></li>
                        <li><a href="/commerce/api/v2/admin/list">后台管理用户</a></li>
                    </ul>
                </li>
                <li class="menu-list"><a href=""><i class="fa fa-hand-o-up"></i> <span>帮助中心</span></a>
                    <ul class="sub-menu-list">
                        <li><a href="/commerce/api/v2/help/list">问题类型</a></li>
                        <li><a href="/commerce/api/v2/help/qaList">问答</a></li>
                    </ul>
                </li>
                <li><a href="/commerce/api/v2/feedback/list"><i class="fa fa-comments-o"></i> <span>意见反馈</span></a></li>
            </ul>
            <!--sidebar nav end-->

        </div>
    </div>
    <!-- left side end-->

    <!-- main content start-->
    <div class="main-content" >

        <!-- header section start-->
        <div class="header-section">

            <!--toggle button start-->
            <a class="toggle-btn"><i class="fa fa-bars"></i></a>
            <!--toggle button end-->

            <!--notification menu start -->
            <div class="menu-right">
                <ul class="notification-menu">
                    <li>
                        <a href="#" class="btn btn-default dropdown-toggle info-number" data-toggle="dropdown">
                            <i class="fa fa-tasks"></i>
                            <span class="badge">8</span>
                        </a>
                        <div class="dropdown-menu dropdown-menu-head pull-right">
                            <h5 class="title">You have 8 pending task</h5>
                            <ul class="dropdown-list user-list">
                                <li class="new">
                                    <a href="#">
                                        <div class="task-info">
                                            <div>Database update</div>
                                        </div>
                                        <div class="progress progress-striped">
                                            <div style="width: 40%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="40" role="progressbar" class="progress-bar progress-bar-warning">
                                                <span class="">40%</span>
                                            </div>
                                        </div>
                                    </a>
                                </li>
                                <li class="new">
                                    <a href="#">
                                        <div class="task-info">
                                            <div>Dashboard done</div>
                                        </div>
                                        <div class="progress progress-striped">
                                            <div style="width: 90%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="90" role="progressbar" class="progress-bar progress-bar-success">
                                                <span class="">90%</span>
                                            </div>
                                        </div>
                                    </a>
                                </li>
                                <li>
                                    <a href="#">
                                        <div class="task-info">
                                            <div>Web Development</div>
                                        </div>
                                        <div class="progress progress-striped">
                                            <div style="width: 66%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="66" role="progressbar" class="progress-bar progress-bar-info">
                                                <span class="">66% </span>
                                            </div>
                                        </div>
                                    </a>
                                </li>
                                <li>
                                    <a href="#">
                                        <div class="task-info">
                                            <div>Mobile App</div>
                                        </div>
                                        <div class="progress progress-striped">
                                            <div style="width: 33%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="33" role="progressbar" class="progress-bar progress-bar-danger">
                                                <span class="">33% </span>
                                            </div>
                                        </div>
                                    </a>
                                </li>
                                <li>
                                    <a href="#">
                                        <div class="task-info">
                                            <div>Issues fixed</div>
                                        </div>
                                        <div class="progress progress-striped">
                                            <div style="width: 80%" aria-valuemax="100" aria-valuemin="0" aria-valuenow="80" role="progressbar" class="progress-bar">
                                                <span class="">80% </span>
                                            </div>
                                        </div>
                                    </a>
                                </li>
                                <li class="new"><a href="">See All Pending Task</a></li>
                            </ul>
                        </div>
                    </li>
                    <li>
                        <a href="#" class="btn btn-default dropdown-toggle info-number" data-toggle="dropdown">
                            <i class="fa fa-envelope-o"></i>
                            <span class="badge">5</span>
                        </a>
                        <div class="dropdown-menu dropdown-menu-head pull-right">
                            <h5 class="title">You have 5 Mails </h5>
                            <ul class="dropdown-list normal-list">
                                <li class="new">
                                    <a href="">
                                        <span class="thumb"><img src="/static/images/photos/user1.png" alt="" /></span>
                                        <span class="desc">
                                          <span class="name">John Doe <span class="badge badge-success">new</span></span>
                                          <span class="msg">Lorem ipsum dolor sit amet...</span>
                                        </span>
                                    </a>
                                </li>
                                <li>
                                    <a href="">
                                        <span class="thumb"><img src="/static/images/photos/user2.png" alt="" /></span>
                                        <span class="desc">
                                          <span class="name">Jonathan Smith</span>
                                          <span class="msg">Lorem ipsum dolor sit amet...</span>
                                        </span>
                                    </a>
                                </li>
                                <li>
                                    <a href="">
                                        <span class="thumb"><img src="/static/images/photos/user3.png" alt="" /></span>
                                        <span class="desc">
                                          <span class="name">Jane Doe</span>
                                          <span class="msg">Lorem ipsum dolor sit amet...</span>
                                        </span>
                                    </a>
                                </li>
                                <li>
                                    <a href="">
                                        <span class="thumb"><img src="/static/images/photos/user4.png" alt="" /></span>
                                        <span class="desc">
                                          <span class="name">Mark Henry</span>
                                          <span class="msg">Lorem ipsum dolor sit amet...</span>
                                        </span>
                                    </a>
                                </li>
                                <li>
                                    <a href="">
                                        <span class="thumb"><img src="/static/images/photos/user5.png" alt="" /></span>
                                        <span class="desc">
                                          <span class="name">Jim Doe</span>
                                          <span class="msg">Lorem ipsum dolor sit amet...</span>
                                        </span>
                                    </a>
                                </li>
                                <li class="new"><a href="">Read All Mails</a></li>
                            </ul>
                        </div>
                    </li>
                    <li>
                        <a href="#" class="btn btn-default dropdown-toggle info-number" data-toggle="dropdown">
                            <i class="fa fa-bell-o"></i>
                            <span class="badge">4</span>
                        </a>
                        <div class="dropdown-menu dropdown-menu-head pull-right">
                            <h5 class="title">Notifications</h5>
                            <ul class="dropdown-list normal-list">
                                <li class="new">
                                    <a href="">
                                        <span class="label label-danger"><i class="fa fa-bolt"></i></span>
                                        <span class="name">Server #1 overloaded.  </span>
                                        <em class="small">34 mins</em>
                                    </a>
                                </li>
                                <li class="new">
                                    <a href="">
                                        <span class="label label-danger"><i class="fa fa-bolt"></i></span>
                                        <span class="name">Server #3 overloaded.  </span>
                                        <em class="small">1 hrs</em>
                                    </a>
                                </li>
                                <li class="new">
                                    <a href="">
                                        <span class="label label-danger"><i class="fa fa-bolt"></i></span>
                                        <span class="name">Server #5 overloaded.  </span>
                                        <em class="small">4 hrs</em>
                                    </a>
                                </li>
                                <li class="new">
                                    <a href="">
                                        <span class="label label-danger"><i class="fa fa-bolt"></i></span>
                                        <span class="name">Server #31 overloaded.  </span>
                                        <em class="small">4 hrs</em>
                                    </a>
                                </li>
                                <li class="new"><a href="">See All Notifications</a></li>
                            </ul>
                        </div>
                    </li>
                    <li>
                        <a href="#" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                            <img src="/static/images/photos/user-avatar.png" alt="" />
                            管理员
                            <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu dropdown-menu-usermenu pull-right">
                            <li><a href="#"><i class="fa fa-user"></i>  Profile</a></li>
                            <li><a href="#"><i class="fa fa-cog"></i>  Settings</a></li>
                            <li>
                                <form action="/logout" method="post">
                                    <button class="fa fa-sign-out btn btn-warning" type="submit">登 出</button>
                                </form>
                            </li>
                        </ul>
                    </li>

                </ul>
            </div>
            <!--notification menu end -->

        </div>
        <!-- header section end-->

        <!-- page heading start-->
        <div class="page-heading">
            <h3>
                订单详情页面
            </h3>
        </div>
        <!-- page heading end-->

        <!--body wrapper start-->
        <div class="wrapper">
            <div class="directory-info-row">
                <div class="row">
                    <div class="col-md-6 col-sm-6">
                        <div class="panel">
                            <div class="panel-body">
                                <h4>订单 <span class="text-muted small"> - 数据</span></h4>
                                <div class="media">
                                    <div class="media-body">
                                        {{ with .Order}}
                                        <address>
                                            <strong>订单号:  {{.OrderNo}}</strong><br>
                                            <strong>订单状态：{{.StateStr}}</strong> <br>
                                            订单id:  {{.Id}}<br>
                                            创建时间：{{.CreatedTimeStr}} <br>
                                            更新时间：{{.UpdatedTimeStr}} <br>
                                            商品总数量：{{.TotalCount}} <br>
                                            下单用户id：{{.UserId}} <br>
                                            自动确认天数：{{.AutoConfirmDay}} <br>
                                            订单数据是否有效(1-是)：{{.IsValid}} <br>

                                            <strong>应付：{{.TotalAmount}}</strong> <br>
                                            运费：{{.FreightAmount}} <br>
                                            <strong>实付：{{.PayAmount}}</strong> <br>
                                            <br>
                                            <strong>优惠信息：</strong> <br>
                                            卡券抵扣金额：{{.CouponAmount}} <br>
                                            使用积分数量：{{.Integration}} <br>
                                            积分抵扣金额：{{.IntegrationAmount}} <br>
                                            <strong>总抵扣金额：{{.DiscountAmount}}</strong> <br>
                                            <br>
                                            <strong>赠送</strong><br>
                                            赠送积分数量：{{.GiftIntegration}} <br>
                                            赠送成长值：{{.GiftGrowth}} <br>
                                            <br>
                                            <strong>收货人信息：</strong> <br>
                                            姓名：{{.ReceiverUserName}} <br>
                                            手机号：{{.ReceiverPhone}} <br>
                                            所在省份：{{.ReceiverProvince}} <br>
                                            所在市：{{.ReceiverCity}} <br>
                                            所在区、镇、乡：{{.ReceiverRegion}} <br>
                                            详细地址：{{.ReceiverDetailAddr}}
                                        </address>
                                        {{end}}
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-md-6 col-sm-6">
                        <div class="panel">
                            <div class="panel-body">
                                <h4>订单项<span class="text-muted small"> - 数据</span></h4>
                                <div class="media">
                                    {{ range .OrderItems}}
                                    <div class="media-body">
                                        <a class="pull-left" href="#">
                                            <img class="thumb media-object" src="{{.SkuImg}}" width="200px" height="200px" alt="">
                                        </a>
                                        <address class="pull-center">
                                            <strong>订单项id:  {{.Id}}</strong><br>
                                            数量：{{.Count}}<br>
                                            单价：{{.SkuPrice}}<br>
                                            小计：{{.Amount}}<br>
                                            实际支付金额：{{.RealAmount}}<br>
                                            <br>
                                            卡券抵扣金额：{{.CouponAmount}} <br>
                                            使用积分数量：{{.Integration}} <br>
                                            积分抵扣金额：{{.IntegrationAmount}} <br>
                                            总优惠金额：{{.DiscountAmount}} <br>
                                            <br>
                                            赠送积分数量：{{.GiftIntegration}} <br>
                                            赠送成长值：{{.GiftGrowth}} <br>
                                            <br>
                                            商品名称：{{.SpuName}}<br>
                                            sku名称：{{.SkuName}}<br>
                                            sku规格：{{.SkuAttrValue}}
                                        </address>
                                    </div>
                                    {{end}}
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-6 col-sm-6">
                        <div class="panel">
                            <div class="panel-body">
                                <h4>商品<span class="text-muted small"> - 数据</span></h4>
                                <div class="media">
                                    {{ range .SkuList}}
                                    <a class="pull-left" href="#">
                                        <img class="thumb media-object" src="{{.MainImg}}" width="200px" height="200px" alt="">
                                    </a>
                                    <div class="media-body">
                                        <address>
                                            <strong>skuId:  {{.Id}}</strong><br>
                                            sku名称：{{.Name}}<br>
                                            sku描述：{{.Description}}<br>
                                            原价：{{.Price}}<br>
                                            商城价：{{.RealPrice}}<br>
                                            商品名称：{{.GoodsName}}<br>
                                            商品图片：<img width="100px" height="100px" src="{{.GoodsImg}}" alt=""><br>
                                            商品描述：{{.GoodsDesc}}<br>
                                            商品品牌id：{{.BrandId}}<br>
                                            商品品牌名称：{{.BrandName}}<br>
                                            商品品牌logo：<img width="100px" height="100px" src="{{.Logo}}" alt=""><br>
                                            商品品牌描述：{{.BrandDesc}}<br>
                                            商品分类id：{{.CategoryId}}<br>
                                            商品分类名称：{{.CategoryName}}<br>
                                            商品分类主图：<img width="100px" height="100px" src="{{.CMainImg}}" alt=""><br>
                                            商品分类描述：{{.CDesc}}
                                        </address>
                                    </div>
                                    {{end}}
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="col-md-6 col-sm-6">
                        <div class="panel">
                            <div class="panel-body">
                                <h4>用户<span class="text-muted small"> - 数据</span></h4>
                                <div class="media">
                                    {{ with .Member}}
                                    <a class="pull-left" href="#">
                                        <img class="thumb media-object" src="{{.Avatar}}" width="200px" height="200px" alt="">
                                    </a>
                                    <div class="media-body">
                                        <address>
                                            <strong>会员id:  {{.Id}}</strong><br>
                                            手机号：{{.Phone}}<br>
                                            姓名：{{.Name}}<br>
                                            昵称：{{.NickName}}<br>
                                            生日：{{.BirthStr}}<br>
                                            性别：{{.GenderStr}}<br>
                                            用户状态(1-有效)：{{.Status}}<br>
                                            国家：{{.Country}}<br>
                                            省：{{.Province}}<br>
                                            城市：{{.City}}<br>
                                            注册时间：{{.CreatedTimeStr}}<br>
                                            更新时间：{{.UpdatedTimeStr}}
                                        </address>
                                    </div>
                                    {{end}}
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-sm-12">
                    <div class="timeline" id="timeline">
                        <article class="timeline-item alt">
                            <div class="text-right">
                                <div class="time-show first">
                                    <a href="#" class="btn btn-primary">开始</a>
                                </div>
                            </div>
                        </article>

<!--                        <article class="timeline-item alt">-->
<!--                            <div class="timeline-desk">-->
<!--                                <div class="panel">-->
<!--                                    <div class="panel-body">-->
<!--                                        <span class="arrow-alt"></span>-->
<!--                                        <span class="timeline-icon"></span>-->
<!--                                        <span class="timeline-date"></span>-->
<!--                                        <h1 class="red">1 hour ago</h1>-->
<!--                                        <p>下单 </p>-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                            </div>-->
<!--                        </article>-->
<!--                        <article class="timeline-item ">-->
<!--                            <div class="timeline-desk">-->
<!--                                <div class="panel">-->
<!--                                    <div class="panel-body">-->
<!--                                        <span class="arrow"></span>-->
<!--                                        <span class="timeline-icon"></span>-->
<!--                                        <span class="timeline-date">10:00 am</span>-->
<!--                                        <h1 class="green">2 hours ago</h1>-->
<!--                                        <p>Completed Coffee meeting with <a href="#">Stive Martin</a> regarding the Product Promotion</p>-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                            </div>-->
<!--                        </article>-->
<!--                        <article class="timeline-item alt">-->
<!--                            <div class="timeline-desk">-->
<!--                                <div class="panel">-->
<!--                                    <div class="panel-body">-->
<!--                                        <span class="arrow-alt"></span>-->
<!--                                        <span class="timeline-icon"></span>-->
<!--                                        <span class="timeline-date">07:49 pm</span>-->
<!--                                        <h1 class="light-green">10 June | Friday</h1>-->
<!--                                        <p>Jonatha Smith added new milestone <span><a href="#" class="light-green">prank</a></span> Lorem ipsum dolor sit amet consiquest dio</p>-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                            </div>-->
<!--                        </article>-->
                    </div>
                </div>
            </div>
        </div>
        <!--body wrapper end-->

        <!--footer section start-->
        <footer>
            由大国妮子提供
        </footer>
        <!--footer section end-->
    </div>
    <!-- main content end-->
</section>

<!-- Placed js at the end of the document so the pages load faster -->
<script src="/static/js/jquery-1.10.2.min.js"></script>
<script src="/static/js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="/static/js/jquery-migrate-1.2.1.min.js"></script>
<script src="/static/js/bootstrap.min.js"></script>
<script src="/static/js/modernizr.min.js"></script>

<!--common scripts for all pages-->
<script src="/static/js/scripts.js"></script>
<script>
    $(document).ready(function(){
        var idx = 0
        {{range  .OrderStatusList}}
            if (idx % 2 == 0) {
                $("#timeline").append("<article class=\"timeline-item alt\">\n" +
                    "                            <div class=\"timeline-desk\">\n" +
                    "                                <div class=\"panel\">\n" +
                    "                                    <div class=\"panel-body\">\n" +
                    "                                        <span class=\"arrow-alt\"></span>\n" +
                    "                                        <span class=\"timeline-icon\"></span>\n" +
                    "                                        <span class=\"timeline-date\"></span>\n" +
                    "                                        <h1 class=\"red\">{{.CreatedTimeStr}}</h1>\n" +
                    "                                        <p>{{.StatusStr}} </p>\n" +
                    "                                    </div>\n" +
                    "                                </div>\n" +
                    "                            </div>\n" +
                    "                        </article>")
            } else {
                $("#timeline").append("<article class=\"timeline-item \">\n" +
                    "                            <div class=\"timeline-desk\">\n" +
                    "                                <div class=\"panel\">\n" +
                    "                                    <div class=\"panel-body\">\n" +
                    "                                        <span class=\"arrow\"></span>\n" +
                    "                                        <span class=\"timeline-icon\"></span>\n" +
                    "                                        <span class=\"timeline-date\">10:00 am</span>\n" +
                    "                                        <h1 class=\"green\">{{.CreatedTimeStr}}</h1>\n" +
                    "                                        <p>{{.StatusStr}}</p>\n" +
                    "                                    </div>\n" +
                    "                                </div>\n" +
                    "                            </div>\n" +
                    "                        </article>")
            }
            idx += 1;
        {{end}}
    })
</script>
</body>
</html>
